package com.suse.ecommerce.service;

import com.github.pagehelper.PageInfo;
import com.suse.ecommerce.pojo.Product;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import java.util.List;

/*
* @auth zst
* @Time 2019-7-6 8:56
* */
public interface ProductService {

    void addProduct(Product product);

    void delProduct(Product product);

    void updateProduct(Product product);

    PageInfo<Product> selectProducts(Product product, int pn,Integer integer);

    Product queryProductById(long productId);

    List<Product> setProductStatus(Product product);
}
